package com.awspaas.user.apps.publicservice.util;

import com.actionsoft.bpms.bo.engine.BO;
import com.actionsoft.bpms.bpmn.engine.model.run.delegate.ProcessInstance;
import com.actionsoft.sdk.local.SDK;

import java.util.Map;

/**
 * @Title: codeGetDesc
 * @Package com.awspaas.user.apps.publicservice.util.LogUtil
 * @Description:生成Log日志表(暂未启用)
 * @Author wanglx
 * @Date 2022/8/5
 */
public class LogUtil {
        public static void createLog(Map<String,String> log){
                BO bo = new BO();
                for(Map.Entry<String, String> info : log.entrySet()){
                        bo.set(info.getKey(),info.getValue());
                }

                ProcessInstance process = SDK.getProcessAPI().createBOProcessInstance("obj_d778147f5b9741138b427effafce0753", "admin", "调用接口日志");
                SDK.getBOAPI().create("BO_EU_INTERFACE_LOG",bo,process.getId(),"admin");
        }
}